package com.ruoyi.common.core.domain.base.datam;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 水管员渠道对照对象 mi_mainchan_b
 * 
 * @author ps
 * @date 2023-03-20
 */
@Data
@TableName("mi_mainchan_b")
public class MiMainchanB extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private Long id;

    /** 年度 */
    @Excel(name = "年度")
    private String mainYear;

    /** 水管员编码 */
    @Excel(name = "水管员编码")
    private String mainCd;

    /** 渠道编码 */
    @Excel(name = "渠道编码")
    private String chanCd;

    /** 当前状态 */
    @Excel(name = "当前状态")
    private String curStatus;

    /** 授权人 */
    @Excel(name = "授权人")
    private String rightOper;

    /** 授权日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "授权日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date rightDate;

    /** 解除人 */
    @Excel(name = "解除人")
    private String undoOper;

    /** 解除日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "解除日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date undoDate;

    public void setMainYear(String mainYear) 
    {
        this.mainYear = mainYear;
    }

    public String getMainYear() 
    {
        return mainYear;
    }
    public void setMainCd(String mainCd) 
    {
        this.mainCd = mainCd;
    }

    public String getMainCd() 
    {
        return mainCd;
    }
    public void setChanCd(String chanCd) 
    {
        this.chanCd = chanCd;
    }

    public String getChanCd() 
    {
        return chanCd;
    }
    public void setCurStatus(String curStatus) 
    {
        this.curStatus = curStatus;
    }

    public String getCurStatus() 
    {
        return curStatus;
    }
    public void setRightOper(String rightOper) 
    {
        this.rightOper = rightOper;
    }

    public String getRightOper() 
    {
        return rightOper;
    }
    public void setRightDate(Date rightDate) 
    {
        this.rightDate = rightDate;
    }

    public Date getRightDate() 
    {
        return rightDate;
    }
    public void setUndoOper(String undoOper) 
    {
        this.undoOper = undoOper;
    }

    public String getUndoOper() 
    {
        return undoOper;
    }
    public void setUndoDate(Date undoDate) 
    {
        this.undoDate = undoDate;
    }

    public Date getUndoDate() 
    {
        return undoDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("mainYear", getMainYear())
            .append("mainCd", getMainCd())
            .append("chanCd", getChanCd())
            .append("curStatus", getCurStatus())
            .append("rightOper", getRightOper())
            .append("rightDate", getRightDate())
            .append("undoOper", getUndoOper())
            .append("undoDate", getUndoDate())
            .toString();
    }
}
